package oop2;

//榨汁机
public class JuiceMaker {
	String brand;
	int watt;// 功率
	String color;

	// String fruit;
	public void start() {
		System.out.println("接通电源，按下开关，机器启动了");
	}

	// 榨汁
	public String makeJuice(String fruit) {
		System.out.println("颜色为" + color + ",功率是" + watt + "的榨汁机开始工作了\n" + "刀头快速转动，把" + fruit + "切碎");

		return fruit + "汁";
	}

	public String makeJuice2(String fruit, String fruit2) {
		System.out.println("颜色为" + color + ",功率是" + watt + "的榨汁机开始工作了\n" + "刀头快速转动，把" + fruit + "和" + fruit2 + "切碎");

		return fruit + fruit2 + "汁";
	}

	public void stop() {
		System.out.println("再次按下开关，榨汁机停了");
	}
}
